package com.decoration.basic.mapper;

import java.util.List;

import com.decoration.basic.entity.DecUserBase;
import com.decoration.basic.entity.DecorationUser;
import com.decoration.basic.findCondition.DecUserFindCondition;

//@Repository
//@Mapper
public interface DecUserMapper {
	List<DecorationUser> findAll();

	int delete(String userId);

	int update(DecorationUser category);

	int add(DecorationUser category);

	//通过userid查找用户信息
	DecorationUser findById(String userId);

	DecUserBase findCtcRelById(String userId);

	DecorationUser findByPhone(String userPhone);

	Integer sumByPhone(String userPhone);

	List<DecorationUser> getUserList(DecUserFindCondition findCondition);

	List<DecorationUser> getDesignUserList(DecUserFindCondition findCondition);

	int getUserSize(DecUserFindCondition findCondition);

}